import request from '@/utils/request'

// 查询待派单列表
export function listDispatched(query) {
  return request({
    url: '/boss/dispatched/list',
    method: 'get',
    params: query
  })
}

// 查询待派单详细
export function getDispatched(dispatchedId) {
  return request({
    url: '/boss/dispatched/' + dispatchedId,
    method: 'get'
  })
}

// 新增待派单
export function addDispatched(data) {
  return request({
    url: '/boss/dispatched',
    method: 'post',
    data: data
  })
}

// 修改待派单
export function updateDispatched(data) {
  return request({
    url: '/boss/dispatched',
    method: 'put',
    data: data
  })
}

// 删除待派单
export function delDispatched(dispatchedId) {
  return request({
    url: '/boss/dispatched/' + dispatchedId,
    method: 'delete'
  })
}
